package com.java.demo12;

import java.sql.SQLOutput;

public class Test01 {
    public static void main(String[] args) {
        MeiXinDoor meiXin = new MeiXinDoor("meiXin", 10, 20);
        meiXin.open();
        meiXin.close();
        System.out.println(meiXin);
        System.out.println("--------------------------------------------------");
        PanPanDoor p = new PanPanDoor("panPan", 20, 40);
        p.alarm();
        p.open();
        p.close();
        System.out.println(p);

    }
}
